﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dcm.Tests.ConfigMapAttributes
{
    [TestClass]
    public class HostnameTests
    {

        [DependencyOn("app.config")]
        [DependencyOn(typeof(Environment))]
        [DependencyOn(typeof(global::Dcm.ConfigMapAttributes.ExecutablePath))]
        [TestMethod]
        public void TestHostNameExecutablePathSet()
        {
            string actual = DynamicConfigurationManager.DynamicConfigurationManager.AppSettings["hostNameExecutablePathKey1"];
            const string Expected = "hostNameExecutablePathValue1";
            if (Expected != actual)
            {
                Debug.WriteLine(DynamicConfigurationManager.DynamicConfigurationManager.Log);
                Assert.Inconclusive(Utilities.UnreliableTest);
            }
            Assert.AreEqual(Expected, actual);
        }
    }
}
